package com.lkx.farmershop.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;

/**
 * (Upvote)实体类
 *
 * @author makejava
 * @since 2025-02-24 00:07:32
 */
@Setter
@Getter
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Upvote implements Serializable {
    private static final long serialVersionUID = -68477656961046742L;
/**
     * 主键
     */
@TableId
    private Long id;
/**
     * 用户id
     */
    private Long userId;
/**
     * 组团id
     */
    private Long tuanId;

    public Upvote(Long userId, Long tuanId) {
        this.userId = userId;
        this.tuanId = tuanId;
    }
}

